package com.hxy.uniappdemo.service;

import com.hxy.uniappdemo.bean.Personal;
import com.hxy.uniappdemo.dao.PersonalDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//@Service:用于标注业务层组件,自动装载bean
@Service
public class PersonalService {
    @Autowired
    //byType方式是根据属性类型在容器中寻找bean类
    private PersonalDao PersonalDao;
    public List<Personal> selectAll()
    {

        return PersonalDao.selectAll();
    }
}
